﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AspNetCs.Model
{
    public class MessageModel
    {
        private int id;
        /// <summary>
        /// 编号
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private int senderId;
        /// <summary>
        /// 发送者编号
        /// </summary>
        public int SenderId
        {
            get { return senderId; }
            set { senderId = value; }
        }

        
        private int senderIsMaster;
        /// <summary>
        /// 发送者是否是管理员(0:普通用户 1:管理员)
        /// </summary>
        public int SenderIsMaster
        {
            get { return senderIsMaster; }
            set { senderIsMaster = value; }
        }


        private string title;
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }


        private string content;
        /// <summary>
        /// 内容
        /// </summary>
        public string Content
        {
            get { return content; }
            set { content = value; }
        }


        private int reciverId;
        /// <summary>
        /// 接收者编号
        /// </summary>
        public int ReciverId
        {
            get { return reciverId; }
            set { reciverId = value; }
        }


        private int reciverIsMaster;
        /// <summary>
        /// 接收者是否是管理员(0:普通用户 1:管理员)
        /// </summary>
        public int ReciverIsMaster
        {
            get { return reciverIsMaster; }
            set { reciverIsMaster = value; }
        }


        private int isAll;
        /// <summary>
        /// 是否发送给所有用户
        /// </summary>
        public int IsAll
        {
            get { return isAll; }
            set { isAll = value; }
        }


        private int isDel;
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel
        {
            get { return isDel; }
            set { isDel = value; }
        }


        private DateTime sendTime;
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime
        {
            get { return sendTime; }
            set { sendTime = value; }
        }
        


        private int isView;
        /// <summary>
        /// 是否查看过 (0:未查看 1:已查看)
        /// </summary>
        public int IsView
        {
            get { return isView; }
            set { isView = value; }
        }

        private DateTime viewTime;
        /// <summary>
        /// 查看时间
        /// </summary>
        public DateTime ViewTime
        {
            get { return viewTime; }
            set { viewTime = value; }
        }

        

    }
}
